package com.atguigu.controller;

import com.atguigu.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/12/20 20:05
 * @注释
 */
@Controller
public class BookController {

    @Autowired
    private BookService bookService;

    public void buyBook(int userId, int bookId) {
        bookService.buyBook(userId, bookId);
    }
}
